import request from "@/utils/request";

// // 查询生产退料单头列表
// export function sync(query) {
//   return request({
//     url: "/mes/pro-return-notice/sync",
//     method: "get",
//     params: query,
//   });
// }
// 查询生产退料单头列表
export function sync(query) {
  return request({
    url: "/sync/k3cloud/api/returnNotices/returnNotices",
    method: "get",
    params: query,
  });
}

export function list(query) {
  return request({
    url: "/mes/pro-return-notice/listPage",
    method: "get",
    params: query,
  });
}

export function pushdown(id) {
  return request({
    url: "/mes/pro-return-notice/pushdown/" + id,
    method: "put",
  });
}
